package com.liyk.shop.service.impl;

import com.liyk.shop.dao.ProductDao;
import com.liyk.shop.domain.entity.Product;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(rollbackFor = Throwable.class)
public class ProductService extends BaseServiceImpl<Product, ProductDao> {

    @Resource
    private ProductDao productDao;

    public List<Product> getList() {
        return productDao.selectAll();
    }
}
